/**
 * 
 */
package common;

/**
 * A Key Value pair class.
 * 
 * @author chuxiaoyuan
 */
public class Pair<K, V> {

	/**
	 * Default constructor.
	 */
	public Pair() {
		// Nothing
	}

	/**
	 * Constructor.
	 */
	public Pair(K key, V value) {
		this.setKey(key);
		this.setValue(value);
	}

	/**
	 * The key.
	 */
	private K key;
	
	/**
	 * The value.
	 */
	private V value;

	/**
	 * Get key.
	 * @return the key
	 */
	public K getKey() {
		return key;
	}

	/**
	 * Set key.
	 * @param key the key to set
	 */
	public void setKey(K key) {
		this.key = key;
	}

	/**
	 * Get value.
	 * @return the value
	 */
	public V getValue() {
		return value;
	}

	/**
	 * Set value.
	 * @param value the value to set
	 */
	public void setValue(V value) {
		this.value = value;
	}
}
